package com.wing.sys.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="sys_user")
public class User {
	@Id
	@Column(name="id", unique=true, nullable=false, insertable=true, updatable=true, length=50)
	private String id;
	@Column(name="login_code", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String login_code;
	@Column(name="password", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String password;
	@Column(name="name", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String name;
	@Column(name="email", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String email;
	@Column(name="bank_account", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String bank_account;
	@Column(name="payment_unit", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String payment_unit;
	@Column(name="sex", unique=false, nullable=true, insertable=true, updatable=true, length=2)
	private String sex;
	@Column(name="education", unique=false, nullable=true, insertable=true, updatable=true, length=50)
	private String education;
	@Column(name="mobile", unique=false, nullable=true, insertable=true, updatable=true, length=20)
	private String mobile;
	@Column(name="office_phone", unique=false, nullable=true, insertable=true, updatable=true, length=20)
	private String office_phone;
	@Column(name="valid_flag", unique=false, nullable=true, insertable=true, updatable=true)
	private Integer valid_flag;
	@Column(name="status", unique=false, nullable=true, insertable=true, updatable=true)
	private Integer status;
	@Column(name="order_num", unique=false, nullable=true, insertable=true, updatable=true)
	private Integer order_num;
	@Column(name="remarks", unique=false, nullable=true, insertable=true, updatable=true, length=128)
	private String remarks;
	@Column(name="createtime")
	private Date createtime;
	@Column(name="site_id")
	private String site_id;
	
	
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public long getCreatetimeView() {
		if(createtime==null){
			return 0;
		}
		return createtime.getTime();
	}
	public void setCreatetimeView(long createtimeView) {
		if(createtimeView!=0){
			this.createtime = new Date(createtimeView);
		}
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLogin_code() {
		return login_code;
	}
	public void setLogin_code(String loginCode) {
		login_code = loginCode;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getBank_account() {
		return bank_account;
	}
	public void setBank_account(String bankAccount) {
		bank_account = bankAccount;
	}
	public String getPayment_unit() {
		return payment_unit;
	}
	public void setPayment_unit(String paymentUnit) {
		payment_unit = paymentUnit;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEducation() {
		return education;
	}
	public void setEducation(String education) {
		this.education = education;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getOffice_phone() {
		return office_phone;
	}
	public void setOffice_phone(String officePhone) {
		office_phone = officePhone;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getValid_flag() {
		return valid_flag;
	}
	public void setValid_flag(Integer validFlag) {
		valid_flag = validFlag;
	}
	public Integer getOrder_num() {
		return order_num;
	}
	public void setOrder_num(Integer orderNum) {
		order_num = orderNum;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getSite_id() {
		return site_id;
	}
	public void setSite_id(String site_id) {
		this.site_id = site_id;
	}

}
